package com.worthtech.billportal.bean.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the bill_hintmessage table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="bill_hintmessage"
 */

public abstract class BaseBillHintmessage  implements Serializable {

	public static String REF = "BillHintmessage";
	public static String PROP_MESSAGE = "Message";
	public static String PROP_HINT_NAME = "HintName";
	public static String PROP_ID = "Id";
	public static String PROP_ORGANIZATION_CODE = "OrganizationCode";


	// constructors
	public BaseBillHintmessage () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseBillHintmessage (java.lang.Integer id) {
		this.setId(id);
		initialize();
	}

	/**
	 * Constructor for required fields
	 */
	public BaseBillHintmessage (
		java.lang.Integer id,
		java.lang.String message,
		java.lang.String organizationCode) {

		this.setId(id);
		this.setMessage(message);
		this.setOrganizationCode(organizationCode);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer id;

	// fields
	private java.lang.String hintName;
	private java.lang.String message;
	private java.lang.String organizationCode;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="native"
     *  column="id"
     */
	public java.lang.Integer getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.Integer id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: hintName
	 */
	public java.lang.String getHintName () {
		return hintName;
	}

	/**
	 * Set the value related to the column: hintName
	 * @param hintName the hintName value
	 */
	public void setHintName (java.lang.String hintName) {
		this.hintName = hintName;
	}



	/**
	 * Return the value associated with the column: message
	 */
	public java.lang.String getMessage () {
		return message;
	}

	/**
	 * Set the value related to the column: message
	 * @param message the message value
	 */
	public void setMessage (java.lang.String message) {
		this.message = message;
	}



	/**
	 * Return the value associated with the column: organizationCode
	 */
	public java.lang.String getOrganizationCode () {
		return organizationCode;
	}

	/**
	 * Set the value related to the column: organizationCode
	 * @param organizationCode the organizationCode value
	 */
	public void setOrganizationCode (java.lang.String organizationCode) {
		this.organizationCode = organizationCode;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.worthtech.billportal.bean.BillHintmessage)) return false;
		else {
			com.worthtech.billportal.bean.BillHintmessage billHintmessage = (com.worthtech.billportal.bean.BillHintmessage) obj;
			if (null == this.getId() || null == billHintmessage.getId()) return false;
			else return (this.getId().equals(billHintmessage.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}